<template>
	<view class="consult-help">
		<MyHeader title="咨询帮助"></MyHeader>
		<view class="help-content">
			<view class="help-item" v-for="(item,index) in helpConsult" :key="index">
				<image src="../../static/imgs/address.png" mode=""></image>
				<view class="item-main">
					<view class="main-title">{{item.name}}老师</view>
					<view class="main-phone">{{item.phone}}</view>
				</view>
				<image src="../../static/imgs/phone.png" mode=""></image>
			</view>
		</view>
		<view class="help-content">暂无数据...</view>
		<view class="help-sure" @tap="conSure">确认</view>
	</view>
</template>

<script>
	import MyHeader from '../../Common/My-header/my-header.vue'
	import { helpConsult } from '../../Service/help.js'
	export default{
		data(){
			return{
				pageSize:10,
				pageNum:1,
				helpConsult:[]
			}
		},
		components:{
			MyHeader
		},
		onLoad() {
			this.__init()
		},
		methods:{
			async __init(){
				const data = {
					pageSize :this.pageSize,
					pageNum:this.pageNum
				}
				this.helpConsult =  await helpConsult(data)
				console.log(this.helpConsult )
			},	
			conSure(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style scoped>
	.consult-help{
		width: 100vw;
		height: 100vh;
		background-color: #f3f4f6;
	}
	.help-content{
		background-color: #FFFFFF;
	}
	.help-item{
		display: flex;
		align-items: center;
		padding: 40rpx;
		border-bottom: 2rpx solid #f3f4f6;
		box-sizing: border-box;
	}
	.help-item image{
		width: 32rpx;
		height: 36rpx;
	}
	.main-phone{
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
		padding-bottom: 20rpx;
	}
	.item-main{
		flex: 1;
		padding: 0 20rpx;
	}
	.main-title{
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
		opacity: 0.9;
	}
	.help-sure{
		width: 420rpx;
		height: 80rpx;
		background-color: #0066ff;
		text-align: center;
		line-height: 80rpx;
		font-size: 30rpx;
		font-weight: 400;
		border-radius: 40rpx;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		bottom: 100rpx;
	}
</style>
